package pony.model;

public class Dog {
	private String name;
	private String color;
	private int age;
	
	public Dog() {
		super();
		color = "yellow";
	}
	
	public Dog(String name, String color) {
		this.name = name;
		this.color = color;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
	
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	public String bark() {
		return "汪汪叫... ";
	}
	
	@Override
	public String toString() {
		return name + "," + color + "," + age;
	}
	
}
